<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/jsp/jscommom.jsp"%>
<%@ taglib uri="/FCKEdit" prefix="fck"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>企业注册</title>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/prototype-1.5.1.2.js"
		charset="UTF-8"></script>
	<script type="text/javascript">
<bean:write name="com_struts_web_corpor_register_CorporDetailForm" property="printVacaSql" filter="false"/>
<bean:write name="com_struts_web_corpor_register_CorporDetailForm" property="printAddressSql" filter="false"/>
<bean:write name="com_struts_web_corpor_register_CorporDetailForm" property="printKindSql" filter="false"/>
//必填项
 function doMethod()
 {
    if(document.all.vocation.value==""){
    alert("对不起,必须选择所属行业!");
    return false;
    }
    if(document.all.kind.value==""){
    alert("对不起,必须选择企业性质!");
    return false;
    }
    if(document.all.address.value==""){
    alert("对不起,必须选择所在地区!");
    return;
    }
    if(document.all.createDate.value==""){
    alert("对不起,成立日期不能为空!");
    return false;
    }
    
    var fckconfig = document.getElementById("corporationSynopsis");
var str=FCKeditorAPI.GetInstance('corporationSynopsis').GetXHTML(fckconfig.FormatOutput);

    if(str==""){
    alert("对不起,企业简介不能为空!");
    return false;
    }
    document.all.method.value="add";
    document.forms[0].submit();
    document.all.method.value="";
    
 }
</script>
	<body>
		<html:form action="/com/struts/web/corpor/register/corpordetail"
			method="post">
			<html:hidden property="method" />
			<table width="880" border="0" align="center" cellpadding="0"
			cellspacing="0">
				<%@ include file="/jsp/top.jsp" %>
				<tr>
				<td>
				<span height="10"></span>
				</td>
				</tr>
				
				<tr>
					<td>
						<table width="880" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
							<tr>
								<td class="titlebg1" colspan="2">
									详细信息
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*所属行业:
								</td>
								<td class="mtdtextleft">

									<html:select property="vocation" styleClass="input1">
										<SCRIPT language=JavaScript>
			        for (var i = 0; i < (vocation.length); i++) {
			         document.write("<OPTION value='"+vocation[i]+"'");
			    document.write(">" + vocation[++i]+"</OPTION>");	
			  }
			</SCRIPT>
									</html:select>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*企业性质:
								</td>
								<td class="mtdtextleft">
									<html:select property="kind" styleClass="input1">
										<SCRIPT language=JavaScript>
			        for (var i = 0; i < (kindId.length); i++) {
			         document.write("<OPTION value='"+kindId[i]+"'");
			    document.write(">" + kindId[++i]+"</OPTION>");	
			  }
			</SCRIPT>
									</html:select>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*所在地区:
								</td>
								<td class="mtdtextleft">
									<html:select property="address" styleClass="input1">
										<SCRIPT language=JavaScript>
			        for (var i = 0; i < (address.length); i++) {
			         document.write("<OPTION value='"+address[i]+"'");
			    document.write(">" + address[++i]+"</OPTION>");	
			  }
			</SCRIPT>
									</html:select>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*成立日期:
								</td>
								<td class="mtdtextleft">
									<html:text property="createDate" styleClass="input1" onclick="datepopup(this);"></html:text>
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									公司主页:
								</td>
								<td class="mtdtextleft">
									<html:text property="homepage" styleClass="input1"></html:text>
								</td>
							</tr>

							<tr>
								<td class="titlebg1" colspan="2">
									*企业简介:
								</td>
								
							</tr>
							
							<tr>
							<td colspan="2" class="mtdtextleft" height="100%">
							<fck:editor id="corporationSynopsis" basePath="/" height="100%"
								skinPath="/editor/skins/default/" toolbarSet="Default"
								imageBrowserURL="/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
								linkBrowserURL="/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
								flashBrowserURL="/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
								imageUploadURL="/editor/filemanager/upload/simpleuploader?Type=Image"
								linkUploadURL="/editor/filemanager/upload/simpleuploader?Type=File"
								flashUploadURL="/editor/filemanager/upload/simpleuploader?Type=Flash">
							</fck:editor>
									
								</td>
							</tr>
							<tr>
								<td colspan="2" class="mtdtitle1">
									<input type="button" value="提交" class="tbutton"
										onclick="doMethod()" />
									<input type="reset" value="重置" class="tbutton"/>

								</td>
							</tr>
						</table>
					</td>
				</tr>
				<%@ include file="/jsp/bottom.jsp" %>
			</table>
		</html:form>
	</body>
</html>
